package com.hoas.quickstart.threads.chapter02.chapter02_3_4;

public class MyThread extends Thread {

    volatile public static int count;

    synchronized private static void addCount() {
        count++;
        System.out.println("count=" + count);
    }

    @Override
    public void run() {
        addCount();
    }
}
